package com.lzc.soundsystem.xmlconfig.impl;

import com.lzc.soundsystem.xmlconfig.CompactDisc;
import com.lzc.soundsystem.xmlconfig.MediaPlayer;
import org.springframework.beans.factory.annotation.Autowired;

public class CDPlayer implements MediaPlayer {

    private CompactDisc cd;


    public CDPlayer( CompactDisc cd) {
        this.cd = cd;
    }

    @Override
    public void play() {
        cd.play();
    }
}
